home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / mapl0831.zip / MPL-BAT.ZIP / CTXTZIP.BAT < prev    next >
DOS Batch File  |  1991-08-13  |  2KB  |  68 lines

  1. REM %1 = prefix/file converting, %2 = node, %3 = actual file path
  2.  
  3. echo off
  4. md i:\%2
  5. ctty gate1
  6. copy %3%1.txt I:\%2
  7. DEL %3%1.txt
  8. pkzip -a -ex %3%1 i:\%2\*.*
  9. REM pkunzip -t %3%1.zip
  10. IF ERRORLEVEL 1 GOTO badupload
  11.  
  12. :VIRUS
  13. proecho %node% ~Your file will now be examined for Viruses~
  14. proecho %node% Please wait a moment while we do this.....~
  15. scan /nomem /A i:\%2
  16. IF ERRORLEVEL 1 goto VirusCk
  17. seterror 0
  18. goto Good
  19.  
  20. :VIRUSCK
  21. copy %3%1.ZIP c:\c3\virus
  22. del %3%1.zip
  23. proecho %node% ~The file you uploaded contains a virus.~
  24. proecho %node% Please carefully check you files before uploading!~~
  25. seterror 1
  26. goto exit
  27.  
  28. :GOOD
  29. proecho %node% ~ No Viruses have been found!~
  30. REM The ~ represents a line feed.  The below is the suggested amounts.
  31. proecho %node% ~ Setting date of %1.ZIP to the date of most recent date of~
  32. proecho %node% the archive........~
  33. REM recom -o -l c:\rbbs\uploads\logfile -s c:\rbbs\sys\comment.txt %3%1.zip
  34. proecho %node% ~ Now lets see how old the files in %1.ZIP are.......~~
  35. copy %3%1.ZIP i:\%2
  36. ZIPDS i:\%2\*.zip
  37. testage i:\%2 1988 c:\c3\hold
  38. if exist c:\c3\hold\%1.zip goto baddates
  39. if not exist c:\c3\hold\%1.zip goto thanks
  40.  
  41. :baddates
  42. proecho %node% At least one of the programs you uploaded is~
  43. proecho %node% more than 2 years old.  I will move any old~
  44. proecho %node% programs offline for evaluation by the sysop.~
  45. proecho %node% ~Please DO NOT upload items over 2 years old.~~
  46. copy %3%1.zip c:\c3\hold
  47. del %3%1.ZIP
  48. goto exit
  49.  
  50. :badupload
  51. proecho %node% Looks like one or more uploads are no good...~
  52. proecho %node% I will move all file(s) you just uploaded~
  53. proecho %node% offline for manual evaluation by the sysop.~
  54. copy %3%1.zip c:\c3\hold
  55. del %3%1.zip
  56. goto exit
  57.  
  58. :thanks
  59. proecho %node% ~Upload file dates are fine. ~~
  60.  
  61. :EXIT
  62. kdy i:\%2
  63. SETERROR 0
  64. echo on
  65. ctty con
  66. c:
  67. cd\c3
  68.